home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jaz_clib.arc / TABTOSP.C < prev    next >
Text File  |  1989-04-09  |  288b  |  19 lines

  1. char *tabtosp(fsource,fdestin)
  2. char *fsource,*fdestin;
  3. {
  4.   int w;
  5.  
  6.   w = 0;
  7.   while (*fsource) {
  8.     if (*fsource == 9)
  9.       do
  10.     fdestin[w] = ' ';
  11.       while (++w % 8);
  12.     else
  13.       fdestin[w++] = *fsource;
  14.     fsource++;
  15.   }
  16.   fdestin[w] = 0;
  17.   return(fdestin);
  18. }
  19.